package com.vegsan.taskreminder;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class OnAlarmReceiver extends BroadcastReceiver {

	private static final String TAG = "OnAlarmReceiver";

	@Override
	public void onReceive(Context context, Intent intent) {
		
		Log.d(TAG, "Start");
		long rowId = intent.getExtras().getLong(ReminderDbAdapter.KEY_ROWID);
		WakeReminderIntentService.acquireStaticLock(context);
		
		Intent i = new Intent(context, ReminderService.class);
		i.putExtra(ReminderDbAdapter.KEY_ROWID, rowId);
		context.startService(i);
		
	}
	

}
